home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / spotlite < prev   
Text File  |  1995-11-08  |  1KB  |  80 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Spotlight example
  3. // File by Alexander Enzmann & Drew Wells
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11.  
  12. camera {
  13.    location <0, 5, -12>
  14.    direction <0, 0, 1.5>
  15.    up      <0, 1, 0>
  16.    right   <4/3, 0, 0>
  17.    look_at <0, 0, 0>
  18. }
  19.  
  20. // This is the spotlight.
  21. light_source {
  22.    <10, 10, 0> color red 1 green 1 blue 0.5
  23.    spotlight
  24.    point_at <0, 1, 0>
  25.    tightness 50
  26.    radius 11
  27.    falloff 25
  28.  
  29.    looks_like {
  30.       sphere {
  31.          <10, 10, 0>, 0.5
  32.          texture {
  33.             pigment { White }
  34.             finish { Luminous }
  35.          }
  36.       }
  37.    }
  38. }
  39.  
  40. light_source {
  41.    <-10, 10, 0> color red 0.5 green 0.5 blue 1.0
  42.    spotlight
  43.    point_at <0, 1, 0>
  44.    tightness 50
  45.    radius 11
  46.    falloff 25
  47. }
  48.  
  49. light_source {
  50.    <0, 10, -10> color red 1.0 green 0.1 blue 0.1
  51.    spotlight
  52.    point_at <0, 1, 0>
  53.    tightness 20
  54.    radius 11
  55.    falloff 35
  56. }
  57.  
  58. // Create a sphere with a checker texture
  59. sphere { <0, 0, 0>, 2
  60.    pigment { Sapphire_Agate }
  61.    finish {
  62.       specular 0.6
  63.       ambient 0.2
  64.       diffuse 0.8
  65.    }
  66. }
  67.  
  68. // Create a ground plane
  69. plane { y, -2.01
  70.  
  71.    pigment {
  72.       checker colour White colour DarkSlateGrey
  73.       scale 2 
  74.    }
  75.    finish {
  76.       ambient 0.2
  77.       diffuse 0.8
  78.    }
  79. }
  80.